package com.mrd.gtimp.business.repository;

import com.mrd.gtimp.business.entity.Notification;
import com.mrd.spring.repository.BaseRepository;

import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by dengdc on 2017/1/16.
 */
@Repository
public interface NotificationDao extends BaseRepository<Notification, String> {
	/**
	 * 根据状态进行查询并安装其实时间顺序排序
	 * @param state
	 *            状态
	 */
	List<Notification> findByStateOrderByBeginTimeAsc(String state);
}
